package com.lgj.tlias.service.impl;

import com.lgj.tlias.annotation.LogOperation;
import com.lgj.tlias.mapper.DeptMapper;
import com.lgj.tlias.domain.pojo.Dept;
import com.lgj.tlias.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
//@AllArgsConstructor
public class DeptServiceImpl implements DeptService {
    @Autowired
    public DeptMapper deptMapper;

    @LogOperation
    @Override
    public List<Dept> findAll() {
        return deptMapper.findAll();
    }
}
